﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Northwind.NET.EDM.FE.WinForms.Controls
{
    public partial class UserControlManagerForm2 : Form
    {
        public UserControlManagerForm2()
        {
            InitializeComponent();
        }

        private void applicationControlsManagerUserControl1_Load(object sender, EventArgs e)
        {
            applicationControlsManagerUserControl1.ControlLoaded += new EventHandler<BaseUserControl.ControlLoadedEventArgs>(controlLoaded);

            applicationControlsManagerUserControl1.ShowCategoriesForm(); 
        }

        private void UserControlManagerForm2_Load(object sender, EventArgs e)
        {
            this.WindowState = FormWindowState.Maximized;

 
        }

        private void controlLoaded(object sender, BaseUserControl.ControlLoadedEventArgs e)
        {
            this.Text = e.ControlTitle; 
        }
    }
}
